package com.mushuilingfeng.ddd.framework.factory;

import com.mushuilingfeng.ddd.framework.ComponentFactoryHolder;

/**
 * @author mushuilingfeng
 * @date 2024/9/14
 */
public class DomainServiceFactory {
    private DomainServiceFactory() {}

    public static <T> T getDomainService(Class<T> clazz) {
        return ComponentFactoryHolder.getComponentFactory().getComponent(clazz);
    }

}
